import tui from '../../../common/httpRequest'
let rBubble;
Page({
  onReady: function (options) {
    rBubble = this.selectComponent("#tui-rt-bubble")
  },
  data: {
    itemList: [{
      title: '首页',
      icon: 'home'
    },
    {
      title: '收藏',
      icon: 'star'
    },
    {
      title: '分享',
      icon: 'partake'
    }
    ],
    show: false
  },
  rtBubble() {
    rBubble.toggle();
  },
  topBubble() {
    this.setData({
      show: !this.data.show
    })
  },
  itemClick(e) {
    let text = ["首页", "收藏", "分享"][e.detail.index];
    tui.toast(`您点击了：${text}`);
  }
})